﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPFServices.Models.Domain
{
    /// <summary>
    /// 角色实体
    /// </summary>
    public class Role : AuditableEntity
    {
        public string RoleName { get; set; } = string.Empty;
        public string? Description { get; set; }
        public string RoleCode { get; set; } = string.Empty;
        public bool IsEnabled { get; set; } = true;
    }

    /// <summary>
    /// 角色列表DTO
    /// </summary>
    public class RoleDto : AuditableEntity
    {
        public string RoleName { get; set; } = string.Empty;
        public string? Description { get; set; }
        public string RoleCode { get; set; } = string.Empty;
        public bool IsEnabled { get; set; } = true;
    }

    /// <summary>
    /// 角色创建更新DTO
    /// </summary>
    public class CreateUpdateRoleDto
    {
        public string RoleName { get; set; } = string.Empty;
        public string? Description { get; set; }
    }

    /// <summary>
    /// 角色查询DTO
    /// </summary>
    public class SearchRoleDto : PageModel
    {
        public string? RoleName { get; set; }
    }
}
